'use strict';
/*
 * 运营管理 - 照明策略
 * @type {*}
 */

let underscore = require('underscore');
let RestifyProxy = require('../../util/RestifyProxy');
let StringUtil = require('../../util/StringUtil');
let Constant = require('../../model/Constant');
let baseService = require('../BaseService');
const URI = {
    METHOD: '/operate/strategy/getStrategyList',//照明策略——列表
    CREATE: '/operate/strategy/addLightStrategy',
    METHOD_DETAIL: '/operate/strategy/getOperateStrategyVo',
    MODIFY:' /operate/strategy/updateLightStrategy',
    DELETE: '/operate/strategy/deleteLightStrategy',

};

/**
 * 照明策略——列表
 * @param thiz
 * @returns {Promise}
 */
module.exports.getlightmethod = function (thiz, params) {
    return baseService.get(thiz, URI.METHOD, params);
};
/*照明策略——创建页面-保存按钮*/
module.exports.lightmethodCreateSave = function (thiz, params) {
    return baseService.post(thiz, URI.CREATE, params);
};
/*===============================================================*/
/**
 * 通过照明策略ID，获取照明策略详情
 * @param thiz
 * @param strategyId 照明策略ID
 */
module.exports.lightmethodDetailData = function (thiz, params) {
    // return baseService.get(thiz, StringUtil.format(URI.METHOD_DETAIL, params));
    return baseService.get(thiz,URI.METHOD_DETAIL, params);
};


/**
 * 修改照明策略详情
 * @param thiz
 * @param params
 */
module.exports.lightmethodModifySave = function (thiz, params) {
return baseService.post(thiz, URI.MODIFY,params);
};

/**
 * 通过照明策略ID，删除用户
 * @param thiz
 * @param strategyId 照明策略ID
 * @returns {*}
 */
module.exports.lightmethodDelete = function (thiz, params) {
    return baseService.get(thiz, URI.DELETE, params);
};

